{if $messages}{* && $action!='form'}*}
<div id="messages" style='width:100%;font-weight:bold;text-align:center'>
	{foreach from=$messages item=message}
		{foreach from=$message.message item=_m}
			<span {if $message.type=='error'}style="color:red"{else}style="color:green"{/if}>{$_m}</span><br/>
		{/foreach}
	{/foreach}
</div>
{/if}